package yushuman.rbac.dao;

import yushuman.rbac.domain.entity.BaseEntity;

import java.util.Collection;

/**
 * 数据访问层-通用数据接口
 *
 * @author 俞舒熳
 * @since 2025/6/6 20:43
 */
public interface IBaseDao<Entity extends BaseEntity> {

    boolean existsById(int id);

    Entity findById(int id);

    Collection<Entity> list();

    Entity save(Entity entity);

    Entity delete(int id);

}
